package com.xmut.mall.order.vo;

import cn.hutool.core.bean.BeanUtil;
import com.xmut.mall.order.entity.OrderComplaintCommunicationEntity;
import com.xmut.mall.order.entity.OrderComplaintEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 订单交易投诉VO
 *
 * @author paulG
 * @since 2020/12/4
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderComplaintVO extends OrderComplaintEntity {


    private static final long serialVersionUID = -7013465343480854816L;

    // 投诉对话
    private List<OrderComplaintCommunicationEntity> orderComplaintCommunications;

    // 投诉图片
    private String[] orderComplaintImages;

    // 申诉商家上传的图片
    private String[] appealImagesList;

    public OrderComplaintVO(OrderComplaintEntity orderComplaint) {
        BeanUtil.copyProperties(orderComplaint, this);
    }
}
